﻿<%@ Import Namespace="Business" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="GroupGrantPermission.ascx.cs"
    Inherits="Controls_BackEnd_GroupGrantPermission" %>
<div id="content-outer">
    <!-- start content -->
    <div id="content">
        <!--  start page-heading -->
        <div id="page-heading">
            <h1>
                <%=Resources.Resource.GroupGrantPermission %></h1>
        </div>
        <!-- end page-heading -->
        <table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
            <tr>
                <th rowspan="3" class="sized">
                    <img src="<%=Config.ApplicationUrl %>resources/images/admin/shared/side_shadowleft.jpg"
                        width="20" height="300" alt="" />
                </th>
                <th class="topleft">
                </th>
                <td id="tbl-border-top">
                    &nbsp;
                </td>
                <th class="topright">
                </th>
                <th rowspan="3" class="sized">
                    <img src="<%=Config.ApplicationUrl %>resources/images/admin/shared/side_shadowright.jpg"
                        width="20" height="300" alt="" />
                </th>
            </tr>
            <tr>
                <td id="tbl-border-left">
                </td>
                <td>
                    <!--  start content-table-inner ...................................................................... START -->
                    <div id="content-table-inner">
                        <!--  start table-content  -->
                        <div id="table-content">
                            <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                                <ContentTemplate>
                                    <fieldset>
                                        <legend><strong>
                                            <%=Resources.Resource.GroupInfo %></strong></legend>
                                        <label style="float: left; width: 200px">
                                            <asp:Literal ID="ltrGroup" runat="server"></asp:Literal>
                                        </label>
                                        <div style="float: left; width: 300px">
                                            <asp:Button OnClick="AllCommand" ID="btnSave" class="form-submit" TabIndex="3" runat="server" Text="Save" />
                                            <asp:Button OnClick="AllCommand" ID="btnAdd" class="form-add" TabIndex="2" runat="server" Text="Add " />
                                            <asp:Button OnClick="AllCommand" ID="btnRemove" class="form-remove"  TabIndex="1" runat="server" Text="Remove" />
                                            <asp:Button OnClick="AllCommand" ID="btnBack" style="margin-left:4px;" class="form-back"  TabIndex="0" runat="server" Text="Back" />
                                        </div>
                                        <label style="float: left; width: 100px">
                                        </label>
                                    </fieldset>
                                    <!--  start product-table ..................................................................................... -->
                                    <fieldset>
                                        <legend><strong>
                                            <%=Resources.Resource.ListPermission %></strong></legend>
                                        <br>
                                        <asp:GridView ID="grvData" class="listing" CellPadding="0" border="0" Width="100%"
                                            DataKeyNames="FunctionID" runat="server" AutoGenerateColumns="False" OnRowDataBound="grvData_RowDataBound">
                                            <Columns>
                                                <asp:TemplateField HeaderStyle-CssClass="table-header-repeat line-left minwidth-1">
                                                    <HeaderTemplate>
                                                        <a href="javascript:void(0);">ID</a>
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <%#Eval("FunctionID")%>
                                                    </ItemTemplate>
                                                    <HeaderStyle CssClass="table-header-repeat line-left minwidth-1" />
                                                    <ItemStyle Width="3%" HorizontalAlign="Center" />
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderStyle-CssClass="table-header-repeat line-left minwidth-1">
                                                    <HeaderTemplate>
                                                        <a href="javascript:void(0);">Name</a>
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <%#Eval("Name")%>
                                                    </ItemTemplate>
                                                    <HeaderStyle CssClass="table-header-repeat line-left minwidth-1" />
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderStyle-CssClass="table-header-repeat line-left minwidth-1">
                                                    <HeaderTemplate>
                                                        <a href="javascript:void(0);">Insert</a>
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <asp:CheckBox ID="cbInsert" runat="server" />
                                                    </ItemTemplate>
                                                    <HeaderStyle CssClass="table-header-repeat line-left minwidth-1" />
                                                    <ItemStyle Width="3%" HorizontalAlign="Center" />
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderStyle-CssClass="table-header-repeat line-left minwidth-1">
                                                    <HeaderTemplate>
                                                        <a href="javascript:void(0);">Update</a>
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <asp:CheckBox ID="cbCheckUpdate" runat="server" />
                                                    </ItemTemplate>
                                                    <HeaderStyle CssClass="table-header-repeat line-left minwidth-1" />
                                                    <ItemStyle Width="3%" HorizontalAlign="Center" />
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderStyle-CssClass="table-header-repeat line-left minwidth-1">
                                                    <HeaderTemplate>
                                                        <a href="javascript:void(0);">Delete</a>
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <asp:CheckBox ID="cbCheckDelete" runat="server" />
                                                    </ItemTemplate>
                                                    <HeaderStyle CssClass="table-header-repeat line-left minwidth-1" />
                                                    <ItemStyle Width="3%" HorizontalAlign="Center" />
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderStyle-CssClass="table-header-repeat line-left minwidth-1">
                                                    <HeaderTemplate>
                                                        <a href="javascript:void(0);">Remove</a>
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <asp:CheckBox ID="cbCheck" runat="server" />
                                                    </ItemTemplate>
                                                    <HeaderStyle CssClass="table-header-repeat line-left minwidth-1" />
                                                    <ItemStyle Width="3%" HorizontalAlign="Center" />
                                                </asp:TemplateField>
                                            </Columns>
                                        </asp:GridView>
                                    </fieldset>
                                    <asp:HiddenField ID="hdfid" runat="server" />
                                    <asp:Button ID="lbtnaccept" Style="display: none" OnClick="AllCommand" runat="server"
                                        Text="Button" />
                                </ContentTemplate>
                            </asp:UpdatePanel>
                        </div>
                        <!--  end content-table  -->
                        <div class="clear">
                        </div>
                    </div>
                    <!--  end content-table-inner ............................................END  -->
                </td>
                <td id="tbl-border-right">
                </td>
            </tr>
            <tr>
                <th class="sized bottomleft">
                </th>
                <td id="tbl-border-bottom">
                    &nbsp;
                </td>
                <th class="sized bottomright">
                </th>
            </tr>
        </table>
        <div class="clear">
            &nbsp;</div>
    </div>
    <!--  end content -->
    <div class="clear">
        &nbsp;</div>
</div>

<script type="text/javascript">
reloadpage =function() {
	$('.styledselect_form_1').selectbox({ inputClass: "styledselect_form_1" });
	$('.styledselect_form_2').selectbox({ inputClass: "styledselect_form_2" });
}
</script>

<script language="javascript" type="text/javascript">
        AcceptFromPopup=function(list)
        {
        $control('<%=hdfid.ClientID %>').value=list;
        UnLoading();
        $control('<%=lbtnaccept.ClientID %>').click();
        }
</script>

